package com.lwd.springcloud.billmanagement.controller;

import com.lwd.springcloud.billmanagement.entity.BillType;
import com.lwd.springcloud.billmanagement.service.TypeService;
import com.lwd.springcloud.billmanagement.vo.ResultVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("billType")
public class BillTypeController {
    @Resource
    private TypeService typeService;

    @GetMapping("list")
    public ResultVO<BillType> list(){
        return new ResultVO<>(typeService.list());
    }
}
